﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.DialogUI {
    import flash.utils.*;
    import org.aswing.*;
    import Classes.*;
    import Display.*;
    import flash.text.*;
    import Display.aswingui.*;

    public class CreditDialogView extends GenericDialogView {

        protected var m_secondIcon:String;

        public function CreditDialogView(_arg1:Dictionary, _arg2:String="", _arg3:String="", _arg4:int=0, _arg5:Function=null, _arg6:String="", _arg7:int=0, _arg8:String="", _arg9:Function=null){
            super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9);
        }
        override protected function createTitlePanel():JPanel{
            var _local2:String;
            var _local3:TextFormat;
            var _local1:JPanel = ASwingHelper.makeSoftBoxJPanel(SoftBoxLayout.CENTER);
            m_titleFontSize = TextFieldUtil.getLocaleFontSize(20, 20, null);
            if (m_titleString != ""){
                _local2 = ZLoc.t("Dialogs", (m_titleString + "_title"));
                title = ASwingHelper.makeTextField(_local2, EmbeddedArt.TITLE_FONT, m_titleFontSize, EmbeddedArt.titleColor, 3);
                title.filters = EmbeddedArt.newtitleFilters;
                _local3 = new TextFormat();
                _local3.size = m_titleSmallCapsFontSize;
                TextFieldUtil.formatSmallCaps(title.getTextField(), _local3);
                _local1.append(title);
                title.getTextField().height = (m_titleFontSize * 1.5);
            } else {
                _local1.append(ASwingHelper.verticalStrut(10));
            };
            ASwingHelper.setEasyBorder(_local1, 4);
            return (_local1);
        }
        override protected function setMessageTextWidth(_arg1:Boolean=false):Number{
            var _local2:Number = 0;
            if (_arg1 == false){
                _local2 = 500;
            } else {
                _local2 = 420;
            };
            return (_local2);
        }

    }
}//package Display.DialogUI 
